package org.gjw.controller;

import org.gjw.config.DataSourceHolder;
import org.gjw.mapper.DyMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author guojunwang
 * @date 2022-05-10 23:39
 */
@RestController
public class DyQueryController {

    @Resource
    private DyMapper dyMapper;

    @GetMapping("query")
    public List dyQuery(String tableName){
        return dyMapper.dyQuery(tableName);
    }
}
